package com.tarena.demo.luban.all.main.rpc;

import com.tarena.demo.luban.all.main.service.CartService;
import com.tarena.demo.luban.cart.api.CartApi;
import com.tarena.demo.luban.protocol.cart.param.CartDeleteParam;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class CartApiImpl implements CartApi {
    @Autowired
    private CartService cartService;

    @Override
    public void deleteUserCart(CartDeleteParam cartDeleteParam) {
        //删除购物车
        cartService.deleteCart(cartDeleteParam);
    }
}
